package com.tensquare.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author XXX
 * @since 2022-10-29
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbUser对象", description="用户")
public class TbUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "出生年月日")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "E-Mail")
    private String email;

    @ApiModelProperty(value = "注册日期")
    private LocalDateTime regdate;

    @ApiModelProperty(value = "修改日期")
    private LocalDateTime updatedate;

    @ApiModelProperty(value = "最后登陆日期")
    private LocalDateTime lastdate;

    @ApiModelProperty(value = "在线时长（分钟）")
    private Long online;

    @ApiModelProperty(value = "兴趣")
    private String interest;

    @ApiModelProperty(value = "个性")
    private String personality;

    @ApiModelProperty(value = "粉丝数")
    private Integer fanscount;

    @ApiModelProperty(value = "关注数")
    private Integer followcount;

    @Override
    public String toString() {
        return "TbUser{" +
                "id='" + id + '\'' +
                ", mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", avatar='" + avatar + '\'' +
                ", email='" + email + '\'' +
                ", regdate=" + regdate +
                ", updatedate=" + updatedate +
                ", lastdate=" + lastdate +
                ", online=" + online +
                ", interest='" + interest + '\'' +
                ", personality='" + personality + '\'' +
                ", fanscount=" + fanscount +
                ", followcount=" + followcount +
                '}';
    }
}
